package com.wx_shop.api.util.wx.vo;

import java.io.Serializable;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

import com.wx_shop.api.util.wx.dto.WeixinSign;

/**
 * 微信支付结果通知对象
 * @author leiwuluan
 */
@SuppressWarnings("serial")
@XmlRootElement(name="xml")
public class WeixinPayNotifyReq extends WeixinSign implements Serializable {

	@XmlElement public String appid; // ><![CDATA[wx723c9af7bada9cd1]]></appid>
	@XmlElement public String attach; // ><![CDATA[支付测试]]></attach>
	@XmlElement public String bank_type; // ><![CDATA[CFT]]></bank_type>
	@XmlElement public String cash_fee; // ><![CDATA[1]]></cash_fee>
	@XmlElement public String fee_type; // ><![CDATA[CNY]]></fee_type>
	@XmlElement public String is_subscribe; // ><![CDATA[Y]]></is_subscribe>
	@XmlElement public String mch_id; // ><![CDATA[1343225901]]></mch_id>
	@XmlElement public String nonce_str; // ><![CDATA[1add1a30ac87aa2db72f57a2375d8fec]]></nonce_str>
	@XmlElement public String openid; // ><![CDATA[owZ3jv5Wrc6S2NShemtkO5jvvVQU]]></openid>
	@XmlElement public String out_trade_no; // ><![CDATA[1415659994]]></out_trade_no>
	@XmlElement public String result_code; // ><![CDATA[SUCCESS]]></result_code>
	@XmlElement public String return_code; // ><![CDATA[SUCCESS]]></return_code>
	@XmlElement public String sign; // ><![CDATA[D070F4DAE93BE9C593DDDF323F154B52]]></sign>
	@XmlElement public String time_end; // ><![CDATA[20160611110031]]></time_end>
	@XmlElement public String total_fee; // >1</total_fee>
	@XmlElement public String trade_type; // ><![CDATA[JSAPI]]></trade_type>
	@XmlElement public String transaction_id; // 微信支付订单号
	
	@Override
	public String toString() {
		return "WeixinPayDomain [appid=" + appid + ", attach=" + attach
				+ ", bank_type=" + bank_type + ", cash_fee=" + cash_fee
				+ ", fee_type=" + fee_type + ", is_subscribe=" + is_subscribe
				+ ", mch_id=" + mch_id + ", nonce_str=" + nonce_str
				+ ", openid=" + openid + ", out_trade_no=" + out_trade_no
				+ ", result_code=" + result_code + ", return_code="
				+ return_code + ", sign=" + sign + ", time_end=" + time_end
				+ ", total_fee=" + total_fee + ", trade_type=" + trade_type
				+ ", transaction_id=" + transaction_id + "]";
	}
	
}
